<template>
    <div class="top">
        <h2>大学生志愿者活动</h2>
        <div class="profile">
            <div class="user">
                <img src="@/assets/user.jpg">
                <span>李华</span>
            </div>
            <span>&gt;</span>
        </div>
    </div>
    <div class="tap">
        <ul>
            <li>
                <span></span>
                <span>认领活动</span>
            </li>
            <li>
                <span></span>
                <span>爱心报表</span>
            </li>
            <li>
                <span></span>
                <span>服务纪实</span>
            </li>
            <li>
                <span></span>
                <span>我的服务</span>
            </li>
        </ul>
    </div>
    <div class="content">
        <div class="more">
            <span>志愿活动</span>
            <span>查看更多 &gt;</span>
        </div>
        <div class="main">
            <ul>
                <li>
                    <div class="imgs">
                        <img src="@/assets/user.jpg">
                        <span class="state">进行中</span>
                    </div>
                    <div class="msg">
                        <span class='title'>运动会志愿者招募</span>
                        <span class="time">2022-12-20 08：00 至 2022-12-22 04：30</span>
                        <span class="place">中山公园</span>
                    </div>
                </li>
                <li>
                    <div class="imgs">
                        <img src="@/assets/user.jpg">
                        <span class="state">进行中</span>
                    </div>
                    <div class="msg">
                        <span class='title'>运动会志愿者招募</span>
                        <span class="time">2022-12-20 08：00 至 2022-12-22 04：30</span>
                        <span class="place">中山公园</span>
                    </div>
                </li>
                <li>
                    <div class="imgs">
                        <img src="@/assets/user.jpg">
                        <span class="state">进行中</span>
                    </div>
                    <div class="msg">
                        <span class='title'>运动会志愿者招募</span>
                        <span class="time">2022-12-20 08：00 至 2022-12-22 04：30</span>
                        <span class="place">中山公园</span>
                    </div>
                </li>
                <li>
                    <div class="imgs">
                        <img src="@/assets/user.jpg">
                        <span class="state">进行中</span>
                    </div>
                    <div class="msg">
                        <span class='title'>运动会志愿者招募</span>
                        <span class="time">2022-12-20 08：00 至 2022-12-22 04：30</span>
                        <span class="place">中山公园</span>
                    </div>
                </li>

                <li>
                    <div class="imgs">
                        <img src="@/assets/user.jpg">
                        <span class="state">进行中</span>
                    </div>
                    <div class="msg">
                        <span class='title'>运动会志愿者招募</span>
                        <span class="time">2022-12-20 08：00 至 2022-12-22 04：30</span>
                        <span class="place">中山公园</span>
                    </div>
                </li>
                <li>
                    <div class="imgs">
                        <img src="@/assets/user.jpg">
                        <span class="state">进行中</span>
                    </div>
                    <div class="msg">
                        <span class='title'>运动会志愿者招募</span>
                        <span class="time">2022-12-20 08：00 至 2022-12-22 04：30</span>
                        <span class="place">中山公园</span>
                    </div>
                </li>

                <li>
                    <div class="imgs">
                        <img src="@/assets/user.jpg">
                        <span class="state">进行中</span>
                    </div>
                    <div class="msg">
                        <span class='title'>运动会志愿者招募</span>
                        <span class="time">2022-12-20 08：00 至 2022-12-22 04：30</span>
                        <span class="place">中山公园</span>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</template>

<script setup>

</script>

<style scoped>
.top {
    height: 8vh;
    background-color: rgb(121, 41, 41);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 2vh;
}

.top .profile {
    width: 93%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(255, 255, 255);
    padding: 2%;
    border-radius: 10px;
    position: absolute;
    bottom: -25%;
}

.top .profile .user {
    width: 20%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top .profile img {
    width: 40%;
    border-radius: 50%;
}

.top h2 {
    color: rgb(255, 255, 255);
    font-weight: 100;
}

.tap {
    padding-top: 5%;
    height: 13vh;
    background-color: rgb(240, 240, 240);
    display: flex;
    justify-content: center;
    align-items: center;
}

.tap ul {
    width: 93%;
    height: 70%;
    background-color: rgb(255, 255, 255);
    padding: 2%;
    border-radius: 10px;
    list-style: none;
    display: flex;
    align-items: center;

}

.tap ul li {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.content .more {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2% 5%;
}

.content .more span:nth-child(2) {
    font-size: 12px;
    color: rgb(80, 80, 80);
}

.content .main {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: white;
}

.content .main ul {
    width: 93%;
    list-style: none;
}

.content .main li {
    width: 100%;
    height: 10vh;
    display: flex;
    align-items: stretch;
    margin-bottom: 1vh;
}

.content .main .imgs {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.content .main li .imgs img {
    width: 100%;
}

.content .main li .imgs span {
    padding: 1vw;
    position: absolute;
    bottom: 0px;
    left: 0px;
    background-color: rgb(78, 78, 78);
    color: white;
    font-size: 12px;
}

.content .main li .msg {
    flex: 2;
    padding: 0px 2vw;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: baseline
}

.content .main li .msg .title {
    font-weight: 900;
}

.content .main li .msg .time {
    font-size: 12px;
}

.content .main li .msg .place {
    display: inline;
    background-color: rgb(194, 194, 194);
    color: rgb(114, 114, 114);
    border-radius: 10px;
    padding: 0px 8px;
}
</style>